﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace JTLeigh.Commerce.Spencer.Features.ProductFeedback.Service.Contracts.Runtime.GetProductFeedback
{

	/// <summary>
	/// Data contract representing a product recommendation for a single product by a single 
	/// customer.
	/// </summary>
	/// <remarks>
	/// <para>
	/// Recommendations can be either positive (&quot;I recommend you buy this product.&quot;) or
	/// negative (&quot;I recommend you do <b>not</b> buy this product.&quot;).
	/// </para>
	/// </remarks>
	[DataContract(Name = "ProductRecommendation", Namespace = "http://schemas.jtleigh.com/Commerce/Spencer/Features/ProductFeedback/1.0/Runtime/GetProductFeedback/")]
	public class ProductRecommendation
	{

		#region Properties

		/// <summary>
		/// Gets or sets the product recommendation value.
		/// </summary>
		/// <value><see langword="true"/> if the recommendation is positive, <see langword="false"/>
		/// if the recommendation is negative.</value>
		[DataMember(Name = "Value", IsRequired = true)]
		public bool Value { get; set; }

		/// <summary>
		/// Gets or sets the list of recommendation attribute values.
		/// </summary>
		/// <value>An <see cref="IList{TItem}"/> of <see cref="ProductRecommendationAttributeValue"/>.</value>
		[DataMember(Name = "AttributeValues", IsRequired = true)]
		public IList<ProductRecommendationAttributeValue> AttributeValues { get; set; }

		#endregion // Properties

	}

}
